import java.util.Scanner;
public class text03{
	 public static void main(String[] args) {
		 int sumr=0,sums=0;
		 Scanner in = new Scanner(System.in);
		 Rectangle []rectangle=new Rectangle[2];
		 Circle []circle=new Circle[2];
		 for(int i=0;i<2;i++){
			 rectangle[i]=new Rectangle(in.nextInt(),in.nextInt());
		 }
		 for(int i=0;i<2;i++){
			 circle[i]=new Circle(in.nextInt());
		 }
		 for(int i=0;i<2;i++){	 
		   sumr= sumr+rectangle[i].getPerimeter()+circle[i].getPerimeter();
		 }
		 System.out.println(sumr);
		 for(int i=0;i<2;i++){
				sums= sums+rectangle[i].getArea()+circle[i].getArea();
			 }
		System.out.println(sums);
		System.out.print("["+rectangle[0].toString());
		System.out.print(","+" ");
		System.out.println(rectangle[1].toString()+"]");
		System.out.print("["+circle[0].toString());
		System.out.print(", ");
		System.out.print(circle[1].toString()+"]");	
	 }
}
class Rectangle{
	int width;
	int length;
	Rectangle(int width,int length){
		setWidth(width);
		setLength(length);
	}
	public int getPerimeter(){
		int c=2*(width+length);
		return c;
	}
	public int getArea(){
		int s=width*length;
		return s;
	}
	public int getWidth() {
		return width;
	}
	public void setWidth(int width) {
		this.width = width;
	}
	public int getLength() {
		return length;
	}
	public void setLength(int length) {
		this.length = length;
	}
	public String toString() {
		return "Rectangle [width=" + width + ", length=" + length + "]";
	}
}
class Circle{
	int radius;
	Circle(int radius){
		setRadius(radius);
	}
	public int getPerimeter(){
		int c=0; 
		return  c=(int) (2*Math.PI*radius);	
	}
	public int getArea(){
		int s=0;
		return (int)(Math.PI*radius*radius);
	}
	public int getRadius() {
		return radius;
	}
	public void setRadius(int radius) {
		this.radius = radius;
	}
	public String toString() {
		return "Circle [radius=" + radius + "]";
	}
}
